<script language="javascript" type="text/javascript" src="/javascripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
	theme : "advanced",
	theme_advanced_buttons1 : "bold,italic,underline,bullist,numlist,link,anchor,code",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	mode : "textareas"
});
</script>

<% form_for(:feature, :url => features_path) do |f| %>
	<fieldset>
		<legend>New Feature</legend>
		<br/>
		<%= error_messages_for :feature %>
		<%= f.hidden_field :vail_id, :value => params[:vail_id] %>
		<p>
	    <label for="name">Name</label>
			<br/>
	    <%= f.text_field :name, :class => :input_line %>
	  </p>
	  <p>
	    <label for="body">Body</label>
			<br/>
	    <%= f.text_area :body %>
	  </p>
		<ul class="right">
			<li class="horizontal"><%= link_to "Cancel", vail_path(params[:vail_id]) %></li>
			<li class="horizontal">|</li>
	    <li class="horizontal"><%= submit_tag "Ok" %></li>
	  </ul>
		<br/>
	</fieldset>
<% end %>